﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChallengePuzzle.Lib
{
    public class LuckyNumbers
    {
        List<LuckyNumber> list;

        public LuckyNumbers()
        {
            list = new List<LuckyNumber>();
        }

        internal void Add(int i)
        {
            LuckyNumber number = new LuckyNumber(i);
            
            list.Add(number);
        }

        internal string ToMultiLines()
        {
            string Multilines = "";

            foreach (LuckyNumber item in list)
            {
                Multilines += item.ToString() + "\r\n";
            }

            return Multilines;
        }

        internal int GetCount()
        {
            return list.Count;
        }
    }
}
